//数据序列化类统一管理

mixin BaseEntityFactory {

   T? generateOBJ<T>(json) {
    if (1 == 0) {
      return null;
    } else if (T.toString() == "String") {
      return json as T;
    }
    else {
      return null;
    }
  }
}